package vip.xiaonuo.vehicle.vehicleTraffic.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 响应报警信息板dto
 *
 * @author cad
 * @date 2023/02/22
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class ResponseAlarmInfoPlateDTO {
    @JsonProperty("info")
    private String info;
    @JsonProperty("plateid")
    private Integer plateid;
    @JsonProperty("channelNum")
    private Integer channelNum;
    @JsonProperty("manualTrigger")
    private String manualTrigger;
    @JsonProperty("TriggerImage")
    private TriggerImageDTO triggerImage;
    @JsonProperty("is_pay")
    private String isPay;
    @JsonProperty("serialData")
    private List<SerialDataDTO> serialData;

    @NoArgsConstructor
    @Data
    public static class TriggerImageDTO {
        @JsonProperty("port")
        private Integer port;
        @JsonProperty("snapImageRelativeUrl")
        private String snapImageRelativeUrl;
        @JsonProperty("snapImageAbsolutelyUrl")
        private String snapImageAbsolutelyUrl;
    }

    @NoArgsConstructor
    @Data
    public static class SerialDataDTO {
        @JsonProperty("serialChannel")
        private Integer serialChannel;
        @JsonProperty("data")
        private String data;
        @JsonProperty("dataLen")
        private Integer dataLen;
    }
}
